/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package abstract_ex1;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author aluno
 */
public class Main {
    
    public static void main(String args[]){
        
       /* Calculadora c1 = new Calculadora();
        
        c1.x1=5;
        c1.x2=2;
        c1.executar(new Soma());
        c1.executar(new Subtracao());*/
        
        CalculadoraSimples c1 = new CalculadoraSimples();
        for(int i=-5; i<=5;i++)
        {
            System.out.println(c1.multiplicar(5, i));
            try {
                System.out.println(c1.dividir(5, i));
            } catch (ErroCalc e1) {
               System.out.println(e1.getMessage());
            }finally {
                System.out.println("I: "+i);
            }
}
      
          
        
            
        
       
   
    
}}
